package com.whnk.model.service.impl;

import java.util.List;

import com.whnk.model.vo.AreaInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.whnk.model.mapper.DatTIndexInfoMapper;
import com.whnk.model.domain.DatTIndexInfo;
import com.whnk.model.service.IDatTIndexInfoService;

/**
 * 指标数据Service业务层处理
 * 
 * @author whnk
 * @date 2021-11-25
 */
@Service
public class DatTIndexInfoServiceImpl implements IDatTIndexInfoService 
{
    @Autowired
    private DatTIndexInfoMapper datTIndexInfoMapper;

    /**
     * 查询指标数据
     * 
     * @param id 指标数据主键
     * @return 指标数据
     */
    @Override
    public DatTIndexInfo selectDatTIndexInfoById(Long id)
    {
        return datTIndexInfoMapper.selectDatTIndexInfoById(id);
    }

    /**
     * 查询指标数据列表
     * 
     * @param datTIndexInfo 指标数据
     * @return 指标数据
     */
    @Override
    public List<DatTIndexInfo> selectDatTIndexInfoList(DatTIndexInfo datTIndexInfo)
    {
        return datTIndexInfoMapper.selectDatTIndexInfoList(datTIndexInfo);
    }

    /**
     * 查询指标数据列表
     *
     * @param datTIndexInfo 指标数据
     * @return 指标数据
     */
    @Override
    public List<DatTIndexInfo> selectDatTIndexInfoList1(DatTIndexInfo datTIndexInfo)
    {
        return datTIndexInfoMapper.selectDatTIndexInfoList1(datTIndexInfo);
    }

    /**
     * 查询指标数据列表
     *
     * @param datTIndexInfo 指标数据
     * @return 指标数据
     */
    @Override
    public List<DatTIndexInfo> selectDatTIndexInfoList2(DatTIndexInfo datTIndexInfo)
    {
        return datTIndexInfoMapper.selectDatTIndexInfoList2(datTIndexInfo);
    }

    /**
     * 新增指标数据
     * 
     * @param datTIndexInfo 指标数据
     * @return 结果
     */
    @Override
    public int insertDatTIndexInfo(DatTIndexInfo datTIndexInfo)
    {
        return datTIndexInfoMapper.insertDatTIndexInfo(datTIndexInfo);
    }

    /**
     * 修改指标数据
     * 
     * @param datTIndexInfo 指标数据
     * @return 结果
     */
    @Override
    public int updateDatTIndexInfo(DatTIndexInfo datTIndexInfo)
    {
        return datTIndexInfoMapper.updateDatTIndexInfo(datTIndexInfo);
    }

    /**
     * 批量删除指标数据
     * 
     * @param ids 需要删除的指标数据主键
     * @return 结果
     */
    @Override
    public int deleteDatTIndexInfoByIds(Long[] ids)
    {
        return datTIndexInfoMapper.deleteDatTIndexInfoByIds(ids);
    }

    /**
     * 删除指标数据信息
     * 
     * @param id 指标数据主键
     * @return 结果
     */
    @Override
    public int deleteDatTIndexInfoById(Long id)
    {
        return datTIndexInfoMapper.deleteDatTIndexInfoById(id);
    }

    /**
     * 查询区域信息数据列表
     *
     * @param datTIndexInfo 指标数据
     * @return 指标数据集合
     */
    @Override
    public List<AreaInfoVo> selectAreaInfoList(DatTIndexInfo datTIndexInfo) {
        return datTIndexInfoMapper.selectAreaInfoList(datTIndexInfo);
    }
}
